package com.sn.campus.controller;


import com.sn.campus.entity.SchoolVideo;
import com.sn.campus.model.ResponseResult;
import com.sn.campus.model.ResultEnum;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("video")
public class VideoController {
    @GetMapping("selSchoolVideo")
    public ResponseResult<SchoolVideo> getSchoolVideo(@RequestParam("communityNo") String communityNo){
        ResponseResult<SchoolVideo> result = new ResponseResult<>();
        SchoolVideo schoolVideo = new SchoolVideo();
        schoolVideo.setScName("大庄乡龙潭小学");
        schoolVideo.setScNum(communityNo);
        schoolVideo.setSzIP("112.116.83.241");
        schoolVideo.setSzPassword("dzlt1912");
        schoolVideo.setSzPort("37777");
        schoolVideo.setSzUsername("admin");
        result.setData(schoolVideo);
        result.setResultEnum(ResultEnum.RESULT_SUCCESS);
        return result;
    }
}
